﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using QLTV.DAL;
using QLTV.Public;

namespace QLTV.BLL
{
    public class SachBLL
    {
        SachDAL sDAL;
        public SachBLL()
        {
            sDAL = new SachDAL();
        }
        public DataTable Sach_Load()
        {
            try
            {
                return sDAL.Sach_Load();
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
        public DataTable TimTheoTen(SachDTO sDTO)
        {
            try
            {
                return sDAL.TimTheoTen(sDTO);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
        public int nhapSach(SachDTO sDTO)
        {
            return sDAL.nhapSach(sDTO);
        }
        public DataTable LoadDuLieuCotMaSach(SachDTO sDTO)
        {
            return sDAL.LoadDuLieuCotMaSach(sDTO);
        }
        public int Xoa(SachDTO sDTO)
        {
            return sDAL.Sach_Xoa(sDTO);
        }
    }
}
